package com.ys.entity.storage;

import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TCC_FbaBoxRelevance", catalog="Id")
public class TccFbaBoxRelevance extends BaseEntity<TccFbaBoxRelevance> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="FbaBoxInfoId", nameJava="fbaBoxInfoId", typeDataBase="bigint")
	private Long fbaBoxInfoId;
	@YsField(nameDataBase="BoxUpItemId", nameJava="boxUpItemId", typeDataBase="bigint")
	private Long boxUpItemId;
	@YsField(nameDataBase="BoxId", nameJava="boxId", typeDataBase="bigint")
	private Long boxId;
	@YsField(nameDataBase="RelevanceType", nameJava="relevanceType", typeDataBase="tinyint")
	private Integer relevanceType;
	@YsField(nameDataBase="Remark", nameJava="remark", typeDataBase="varchar")
	private String remark;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TccFbaBoxRelevance setId(Long id) {
		this.id = id;
		return this;
	}
	public Long getFbaBoxInfoId() {
		return fbaBoxInfoId;
	}
	public TccFbaBoxRelevance setFbaBoxInfoId(Long fbaBoxInfoId) {
		this.fbaBoxInfoId = fbaBoxInfoId;
		return this;
	}
	public Long getBoxUpItemId() {
		return boxUpItemId;
	}
	public TccFbaBoxRelevance setBoxUpItemId(Long boxUpItemId) {
		this.boxUpItemId = boxUpItemId;
		return this;
	}
	public Long getBoxId() {
		return boxId;
	}
	public TccFbaBoxRelevance setBoxId(Long boxId) {
		this.boxId = boxId;
		return this;
	}
	public Integer getRelevanceType() {
		return relevanceType;
	}
	public TccFbaBoxRelevance setRelevanceType(Integer relevanceType) {
		this.relevanceType = relevanceType;
		return this;
	}
	public String getRemark() {
		return remark;
	}
	public TccFbaBoxRelevance setRemark(String remark) {
		this.remark = remark;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TccFbaBoxRelevance setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TccFbaBoxRelevance setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TccFbaBoxRelevance setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TccFbaBoxRelevance tccFbaBoxRelevance(
		Long fbaBoxInfoId,
		Long boxUpItemId,
		Long boxId,
		Integer relevanceType,
		String remark,
		Integer status
			) {
		TccFbaBoxRelevance entity = new TccFbaBoxRelevance();
		entity.setFbaBoxInfoId(fbaBoxInfoId);
		entity.setBoxUpItemId(boxUpItemId);
		entity.setBoxId(boxId);
		entity.setRelevanceType(relevanceType);
		entity.setRemark(remark);
		entity.setStatus(status);
		return entity;
	}
}